<?php
$con = mysql_connect("localhost","root","123456");
if (!$con)
{
  die('Could not connect: ' . mysql_error());
}

$name = $_POST["name"];
$phone = $_POST["phone"];
$age = $_POST["age"];
$gender = $_POST["gender"];
$answers = $_POST["answers"];
$points = $_POST["points"];

mysql_select_db("geniusbear", $con);

mysql_query("set names utf8");
mysql_query("INSERT INTO user (name, phone, age, gender, answers, points) 
VALUES ('$name', '$phone', '$age', '$gender', '$answers', '$points')");

mysql_close($con);
?>